import request from './request'
// 新增组合
export const deviceGroupAdd = (dto) => {
  return request({
    url: '/deviceGroup/add',
    method: 'post',
    data: dto,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 组合列表
export const deviceGroupList = (param) => {
  return request({
    url: '/deviceGroup/list',
    method: 'get',
    param,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 组合详情
export const deviceGroupDetail = (groupNum) => {
  return request({
    url: '/deviceGroup/detail',
    method: 'get',
    param: { groupNum },
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 修改组合
export const deviceGroupUpdate = (dto) => {
  return request({
    url: '/deviceGroup/update',
    method: 'post',
    data: dto,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}
